Introduction
Golang Study notes-environment building Guide has explained how to build Golang development environment, and wrote a go program "Hello,world", but write code does not have a good IDE, no syntax highlighting, automatic completion, format adjustment, find functions and other functions, It's going to make everyone crazy, I used to do Java and. NET d
terminal, launch and other :GoRun go commands in their own new terminal. (Beta)
Alternate between implementation and test code with:GoAlternate
Installation is also very convenient, just a few three lines of code:#下载安装git clone [email protected]:farazdagi/vim-go-ide.git ~/.vim_go_runtimesh ~/.vim_go_runtime/bin/install# run Vim-u ~/. Vimrc.goPs:A) This requires vim to open LUA:Brew install VIM--with-lua--override-system-vimb) If you need class resolution, you need to turn CtagOriginal: http:
packages (as shown in the Hdea variable is currently unused variable).
3. Liteideliteide is also a dedicated IDE for Golang, I also use it, the function is very comprehensive, with syntax highlighting, automatic completion, automatic compilation, debugging, package browsing and management.
The debugger uses GDB in the background so that you can easily print variable values and view current stack informatio
This is a creation in
Article, where the information may have evolved or changed.
intelliJJava is the development of a weapon, a very useful IDE, Android Studio is based on intelliJ the change, choose to use intelliJ as Golang the IDE, is very convenient.
Download IntelliJ
First to download http://www.jetbrains.com/idea/intelliJDivided into Community Edition and
This is a creation in
Article, where the information may have evolved or changed.
intelliJJava is the development of a weapon, a very useful IDE, Android Studio is based on intelliJ the change, choose to use intelliJ as Golang the IDE, is very convenient.
Download IntelliJ
First to download http://www.jetbrains.com/idea/intelliJDivided into Community Edition and
feature, and the plugin uses a highlight to show unused variables or packages (as shown in the Hdea variable is currently unused variable).
3. Liteide
Liteide is also a dedicated IDE for Golang, I also use it, the function is very comprehensive, with syntax highlighting, automatic completion, automatic compilation, debugging, package browsing and management.
The debugger uses GDB in the background s
This is a creation in
Article, where the information may have evolved or changed.
Optional options are Lite ide\gosublime\visual Studio Code\goclipse\vim
1. Lite IDE
This is the open source and cross-platform Golang exclusive IDE developed by the people, also is the current Golang
This is a creation in
Article, where the information may have evolved or changed.
The decision to discard the mouse starts, so be prepared to use VIM.
So how to build Golang environment in VIM?
With Git in vogue, it's so easy to build a vim environment.
And when Vim is built, it's basically no different from the IDE.
Highlighting, auto-completion, automatic formatting, viewing definition jumps, grammar dete
This is a creation in
Article, where the information may have evolved or changed.
Many Java students use idea, of course, can also use the Gogland directly at least now or free. No one knows when it will be charged again. So we chose idea to support the development of Golang using plug-in methods. Old idea can easily appear "the selected directory is not a valid home for Go SDK", such as my version 15.0.1. View the plugin documentation.
Supported IDEs
This is a creation in
Article, where the information may have evolved or changed.
Reprint: Golang/go language/go ide/go Windows environment build/go automatic prompt compiler/gosublime
Go is a compiled, hair-style, and garbage-collected programming language developed by Google.
Robert Greysmore (Robert griesemer), Rob Paik (Rob Pike) and Ken Thompson began designing the Go language in September 2007, and th
the following code: The time to witness the Go Code auto promptEnter a PCarriage return (enter key)The main method, the package is automatically generated for you.Here is an example of printing:Pressing the shortcut key below the Ctrl + b interface will appear as follows:Enter Go build hello.go Run, also press the shortcut key ctrl + b interface, the following interface appears, input Hello enter. Well, by now, the development environment has been set up, I hope you will also learn th
up an installation package dialog box, and then enter Gosublime return will automatically install the plug-in, after the finished restart the editor.
After installation, modify the plugin configuration: Preferences->package settings->gosublime->setting Default, after opening the file, modify the env parameter:
"env": { "path""D:\\go\\bin"}
It's almost ready to go here and give a Hello world:
package mainimport"fmt"func main() { fmt.Printf("hello, world\n")}
Gocode
This I do not pre
This is a created
article in which the information may have evolved or changed.
System environment variables: Export path= $PATH:/usr/local/go/binGolang IDE liteide environment variable settings:
# native compiler Linux amd64goroot=/usr/local/go //golang installation directory () #GOBIN =goarch=amd64goos=linuxcgo_enabled= 1GOPATH =/home/www/g //Development directory path= $GOROOT/bin: $PATHLITEIDE _gdb
This is a creation in
Article, where the information may have evolved or changed.
Go is a compiled, hair-style, and garbage-collected programming language developed by Google.
Robert Greysmore (Robert griesemer), Rob Paik (Rob Pike) and Ken Thompson began designing the Go language in September 2007, and the Go language was developed based on the Inferno operating system. The go language was officially launched in November 2009 and implemented on Linux and Mac OS x platforms.
Go language mascot,
This is a creation in
Article, where the information may have evolved or changed.
In two steps:
First step: Install the Vim plugin manager vundle
Step Two: Install the Vim-go plugin.
In addition: I have also written an automatic installation of the
This is a creation in
Article, where the information may have evolved or changed. Reference Http://www.golangcn.com/doc/install
Install go to/usr/local
$sudo tar-c/usr/local-xzf go1.1.1.linux-386.tar.gz
Add the following line in the file
This is a created
article in which the information may have evolved or changed.
Directly on the code
Package Mainimport (L "container/list" "FMT" "Time") var (name = "Viney") func list () {names: = L.new () T: = time. Now () for i: = 1; I The
After installing Liteide on CENTOS7, open the report:./liteide:error while loading shared libraries:libpng12.so.0:cannot open Shared object File:no Such file or directory
The solution is:
View all libpng Packages
#yum List |grep libpng
The output
1. Introduction
The expansion pack can generate a file that the IDE can understand to provide accurate auto-completion functionality. This generated file is based on the files that exist in the project, so it is always real-time. Of course, if you don't want to generate this file manually, you can also use the pre-generated files and put them in the project root directory (these files are less real-time):
Larval 5:https://gist.github.com/barry
There is a P2V over the Windows Server R2 virtual machine, because the original disk is the IDE, the virtual machine is also the IDE, the need to increase the hard disk, but when modifying the hard disk, even in the state of the shutdown is grayed out.After several setbacks, find the following KB, the steps to resolve are as follows:(1) Open ESXi host SSH login; Select Host->configuration-"Security profile-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.